//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02A
TN_Widget.CreateTable([['NHL Eastern Conference First Round: Boston Bruins vs. Toronto Maple Leafs - Home Game 3, Series Game 5','TD Garden','Boston, MA','Tuesday','4/30/2024','7:00 PM','6282672','NHL-Eastern-Conference-First-Round--Boston-Bruins-vs--Toronto-Maple-Leafs---Home-Game-3--Series-Game-5-4-30-2024'],['NHL Eastern Conference First Round: Toronto Maple Leafs vs. Boston Bruins - Home Game 3, Series Game 6 (If Necessary)','Scotiabank Arena','Toronto, Canada','Thursday','5/2/2024','TBD','6282698','NHL-Eastern-Conference-First-Round--Toronto-Maple-Leafs-vs--Boston-Bruins---Home-Game-3--Series-Game-6--If-Necessary--5-2-2024'],['NHL Eastern Conference First Round: Boston Bruins vs. Toronto Maple Leafs - Home Game 4, Series Game 7 (If Necessary)','TD Garden','Boston, MA','Saturday','5/4/2024','TBD','6282673','NHL-Eastern-Conference-First-Round--Boston-Bruins-vs--Toronto-Maple-Leafs---Home-Game-4--Series-Game-7--If-Necessary--5-4-2024'],['NHL Eastern Conference Second Round: Toronto Maple Leafs vs. TBD - Home Game 1 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Monday','5/6/2024','TBD','6282700','NHL-Eastern-Conference-Second-Round--Toronto-Maple-Leafs-vs--TBD---Home-Game-1--Date--TBD---If-Necessary--5-6-2024'],['NHL Eastern Conference Second Round: Toronto Maple Leafs vs. TBD - Home Game 2 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Wednesday','5/8/2024','TBD','6282701','NHL-Eastern-Conference-Second-Round--Toronto-Maple-Leafs-vs--TBD---Home-Game-2--Date--TBD---If-Necessary--5-8-2024'],['NHL Eastern Conference Second Round: Toronto Maple Leafs vs. TBD - Home Game 3 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Wednesday','5/15/2024','TBD','6282702','NHL-Eastern-Conference-Second-Round--Toronto-Maple-Leafs-vs--TBD---Home-Game-3--Date--TBD---If-Necessary--5-15-2024'],['NHL Eastern Conference Second Round: Toronto Maple Leafs vs. TBD - Home Game 4 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Friday','5/17/2024','TBD','6282703','NHL-Eastern-Conference-Second-Round--Toronto-Maple-Leafs-vs--TBD---Home-Game-4--Date--TBD---If-Necessary--5-17-2024'],['NHL Eastern Conference Finals: Toronto Maple Leafs vs. TBD - Home Game 1 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Monday','5/20/2024','TBD','6282704','NHL-Eastern-Conference-Finals--Toronto-Maple-Leafs-vs--TBD---Home-Game-1--Date--TBD---If-Necessary--5-20-2024'],['NHL Eastern Conference Finals: Toronto Maple Leafs vs. TBD - Home Game 2 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Wednesday','5/22/2024','TBD','6282705','NHL-Eastern-Conference-Finals--Toronto-Maple-Leafs-vs--TBD---Home-Game-2--Date--TBD---If-Necessary--5-22-2024'],['NHL Eastern Conference Finals: Toronto Maple Leafs vs. TBD - Home Game 3 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Tuesday','5/28/2024','TBD','6282706','NHL-Eastern-Conference-Finals--Toronto-Maple-Leafs-vs--TBD---Home-Game-3--Date--TBD---If-Necessary--5-28-2024'],['NHL Eastern Conference Finals: Toronto Maple Leafs vs. TBD - Home Game 4 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Thursday','5/30/2024','TBD','6282707','NHL-Eastern-Conference-Finals--Toronto-Maple-Leafs-vs--TBD---Home-Game-4--Date--TBD---If-Necessary--5-30-2024'],['NHL Stanley Cup Finals: Toronto Maple Leafs vs. TBD - Home Game 1 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Tuesday','6/11/2024','TBD','6282708','NHL-Stanley-Cup-Finals--Toronto-Maple-Leafs-vs--TBD---Home-Game-1--Date--TBD---If-Necessary--6-11-2024'],['NHL Stanley Cup Finals: Toronto Maple Leafs vs. TBD - Home Game 2 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Thursday','6/13/2024','TBD','6282709','NHL-Stanley-Cup-Finals--Toronto-Maple-Leafs-vs--TBD---Home-Game-2--Date--TBD---If-Necessary--6-13-2024'],['NHL Stanley Cup Finals: Toronto Maple Leafs vs. TBD - Home Game 3 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Tuesday','6/18/2024','TBD','6282710','NHL-Stanley-Cup-Finals--Toronto-Maple-Leafs-vs--TBD---Home-Game-3--Date--TBD---If-Necessary--6-18-2024'],['NHL Stanley Cup Finals: Toronto Maple Leafs vs. TBD - Home Game 4 (Date: TBD - If Necessary)','Scotiabank Arena','Toronto, Canada','Friday','6/21/2024','TBD','6282711','NHL-Stanley-Cup-Finals--Toronto-Maple-Leafs-vs--TBD---Home-Game-4--Date--TBD---If-Necessary--6-21-2024']],'Toronto Maple Leafs','http://www.ticketnetwork.com/ticket/Toronto-Maple-Leafs-events.aspx');